package com.xunyin.modules.membersuser.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xunyin.domain.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author xunyinyunshang  <3594419785@qq.com>
 * @date 2022-09-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_members_user")
public class TMembersUser extends BaseDomain {

    /**
     * 会员用户ID
     */
    @TableId
    @ApiModelProperty(value = "会员用户ID")
    private Integer id;

    /**
     * 主体ID
     */
    private Integer mainId;

    /**
     * 主体名称
     */
    private String mainName;

    /**
     * 会员卡id
     */
    private Integer membersId;

    @ApiModelProperty(value = "会员用户剩余享受时长")
    @NotNull(message = "请输入小时价格")
    @DecimalMin(value = "0.00", message = "小时价格不在合法范围内")
    @DecimalMax(value = "99999999.99", message = "小时价格不在合法范围内")
    private BigDecimal membersTimeLength;

    /**
     * 剩余转让次数（一级会员不限次数，二级会员10次）
     */
    private Integer membersTransCount;

    /**
     * 会员用户手机号
     */
    private String memberUserPhone;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    //private Integer membersLevel;

    /**
     * 删除日期
     */
    private Date deleteTime;

    /**
     * 创建用户ID
     */
    private Integer createUserId;

    /**
     * 更新用户ID
     */
    private Integer updateUserId;

    private Double membersDiscount;

}
